# Copyright (c) 2006, Michael Borgmann <code@lechuck.de>
# This code is released under the new BSD license

### Overall Settings
env = Environment()
opts = Options('config')

### Build Options

# Compile mode
opts.Add('mode', 'Compile mode', 'release')

# Install directory
opts.Add(PathOption('dir', 'Installation directory', '/usr'))

# Set options
opts.Update(env)
opts.Save('config', env)
Help(opts.GenerateHelpText(env))

### Define Directories
root    = '$dir'
bin     = '$dir/bin'
lib     = '$dir/lib'
include = '$dir/include'
share   = '$dir/share'

### Execute SConscript files
Export('env root bin lib include share')
SConscript('src/SConscript', build_dir='bin')
